{extend name="public:_base" /}
{block name="main"}

<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 管理员管理 <span
        class="c-gray en">&gt;</span> 管理员列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
                                              href="javascript:location.replace(location.href);" title="刷新"><i
        class="Hui-iconfont">&#xe68f;</i></a></nav>


<div class="page-container">

    <form name="" method="get" action="">
        <div class="text-c">
            日期范围：
            <input type="text" name="start_time" id="countTimestart" onfocus="selecttime(1)" class="input-text Wdate"
                   placeholder="开始时间"
                   style="width:140px;" value="{$Think.get.start_time}" size="17" class="date" readonly>
            - <input type="text" name="end_time" id="countTimeend" onfocus="selecttime(2)" class="input-text Wdate"
                     placeholder="结束时间"
                     style="width:140px;" value="{$Think.get.end_time}" size="17" class="date" readonly>

            <input type="text" name="name" placeholder="用户名" style="width:250px" value="{$Think.get.title}"
                   class="input-text">
            <button name="" class="btn btn-success" type="submit"><i class="Hui-iconfont"></i> 搜咨询</button>
        </div>
    </form>

    <div class="cl pd-5 bg-1 bk-gray mt-20"><span class="l">
        <a class="btn btn-primary radius" onclick="edit('添加','{:url('user/add')}')" href="javascript:;">
        <i class="Hui-iconfont">&#xe600;</i> 添加</a></span> <span class="r">共有数据：<strong>{$num}</strong> 条</span>
    </div>

    <div class="mt-20">
        <table class="table table-border table-bordered table-bg table-hover table-sort">
            <thead>
            <tr class="text-c">
                <th width="40"><input name="" type="checkbox" value=""></th>
                <th width="40">ID</th>
                <th width="100">用户名</th>
                <th width="100">创建时间</th>
                <th width="100">最后登录</th>
                <th width="100">操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name="list" id="vo"}
                <tr class="text-c va-m">
                    <td><input name="id" type="checkbox" value="{$vo.id}"></td>
                    <td>{$vo.id}</td>
                    <td class="text-l">
                        {$vo.name}
                    </td>
                    <td>
                        {$vo.create_time}
                    </td>
                    <td>
                        {if $vo.last_login_time}{$vo.last_login_time|date="Y-m-d H:i:s",###}{/if}
                    </td>
                    <td class="td-manage">
                        <a style="text-decoration:none" class="btn btn-xs btn-success" onClick="edit('编辑','{:url('user/edit',['id'=>$vo.id])}','10001')" href="javascript:;" title="编辑">编辑</a>
                        <a style="text-decoration:none" class="btn btn-xs btn-danger" onClick="del(this,'{:url('user/del',['id'=>$vo.id])}','10001')" href="javascript:;" title="删除">删除</a>
                    </td>
                </tr>
            {/volist}
            </tbody>
        </table>
        {$list->render()}
    </div>
</div>
</div>

{/block}